package exam.service.impl;

import exam.bean.ProjectClassic;
import exam.dao.ProjectClassicDao;
import exam.service.IProjectClassicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ProjectClassicServiceImpl implements IProjectClassicService {
    @Autowired
    ProjectClassicDao projectClassicDao;
    @Override
    public List<ProjectClassic> selectInfo() {
        return projectClassicDao.selectInfo(null);
    }

    @Override
    public int insertInfo(ProjectClassic projectClassic) {
        return projectClassicDao.insertInfo(projectClassic);
    }

    @Override
    public int updateInfo(ProjectClassic projectClassic) {
        return projectClassicDao.updateInfo(projectClassic);
    }

    @Override
    public int deleteInfo(int id) {
        return projectClassicDao.deleteInfo(id);
    }

    @Override
    public ProjectClassic selectInfoSingle(Map<String, Object> queryMap) {
        return projectClassicDao.selectInfo(queryMap).get(0);
    }
}
